package lhdx1;

import java.util.Scanner;

public class Ylyyin {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        for (;;) {
            Yly b=new Yly();
            System.out.print("输入姓名：");
            b.xingM = in.next();
            if ((b.xingM).equals("n")) {
                return;
            }
            System.out.print("输入年龄：");
            b.nianL = in.nextInt();
            int pj=b.Piaoj();
            System.out.println(b.xingM + "的年龄为：" +b.nianL + "岁，"+pj+"元" );


        }
    }
}
